package com.ugoodtech.mdcc.core.domain;

import io.swagger.annotations.ApiModel;

import javax.persistence.*;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 * Written by Stone Shaw.
 */
@ApiModel("用户反馈")
@Entity
@Table(name = "feedback")

public class Feedback extends BaseEntity {

    private User user;
    private String suggestion;
    private boolean done = false;//是否已处理



    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "user_id")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }







    @Column(length = 1000)
    public String getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }


    public boolean isDone() {
        return done;
    }

    public void setDone(boolean done) {
        this.done = done;
    }
}
